package GUI;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.UIManager;

public class Frame extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1172387443238878450L;

	public Frame() {

		// Look and feel
		try {
			UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
		} catch (Exception e) {
			
			e.printStackTrace();
		}
		Image icon = new ImageIcon("src/GUI/resources/Icono.png").getImage();
		setIconImage(icon);

		this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		getContentPane().setLayout(new BorderLayout());
		this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		this.setVisible(true);
		this.setTitle("Lista de la Compra Maker 1.0 Beta Edition");
		this.setPreferredSize(new Dimension(610, 350));
		UtilidadesGUI.CentrarPantalla(this);
		getContentPane().add(new panelInicio());
		this.setResizable(false);
		pack();
	}

	public static void main(String[] args) {
		Frame a = new Frame();
	}

}
